<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<%@taglib prefix="s" uri="/struts-tags"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>海淘镖局-速递公司</title>
<link href="css/cs.css" rel="stylesheet" type="text/css" />
<script src="js/DD_belatedPNG_0.0.8a.js" type="text/javascript"></script>
    <script type="text/javascript">
    window.onload = function(){
    	if("<%=request.getAttribute("registerFlag")%>"=="SUCCESS")
        	{
        		alert("用户注册成功！");
        		window.location.href = '/user!index.do';
        	}
    }
        DD_belatedPNG.fix('div, ul, img, li, input , png , a');
    </script>
	<script language="javascript" type="text/javascript">
function Show_zllMenu(tabadid_num,tabadnum){
	for(var i=0;i<3;i++){document.getElementById("tabadcontent_"+tabadid_num+i).style.display="none";}
	for(var i=0;i<3;i++){document.getElementById("tabadmenu_"+tabadid_num+i).className="";}
	document.getElementById("tabadmenu_"+tabadid_num+tabadnum).className="nz0";
	document.getElementById("tabadcontent_"+tabadid_num+tabadnum).style.display="block";
}

</script>
</head>

<body>
<div id="dh">
<jsp:include page="menu_new.jsp" flush="true"/>
</div>
<div id="c1">
<div id="c1z">
 <script type="text/javascript" src="ext-2.2/adapter/ext/ext-base.js"></script>
	<script type="text/javascript" src="ext-2.2/ext-all.js"></script>
<SCRIPT type=text/javascript>
	<!--
	var focus_width=712
	var focus_height=250
	var text_height=18
	var swf_height=focus_height
	
	var pics='images/03.jpg|images/house1.jpg|images/house2.jpg'
	var links='#|#|#|#|#'
	
	document.write('<object ID="focus_flash" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/images/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
	document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="images/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#E7E7E7">');
	document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
	document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'">');
	document.write('<embed ID="focus_flash" src="images/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&borderwidth='+focus_width+'&borderheight='+focus_height+'" menu="false" bgcolor="#E7E7E7" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>');		
	document.write('</object>');
       //--></SCRIPT>
       <SCRIPT type=text/javascript>
          	function checkLogin(){
    		var loginName = document.getElementById("loginName").value;
    		var loginPass = document.getElementById("loginPass").value;
    		if(loginName==""){
    			alert("请填写邮箱!!");
    			return;
    		}
    		if(loginPass==""){
    			alert("请填写密码");
    			return;
    		}
    	   Ext.Ajax.request({ 
                      //请求地址 
                      url: 'user!login.do', 
                      //提交参数组 
                      params: { 
                          Uemail : loginName,
                          Upassword : loginPass
                      }, 
                      //成功时回调 
                      success: function(response, options) { 
                         //获取响应的json字符串 
                        var responseArray = Ext.util.JSON.decode(response.responseText);                                               
                             if(responseArray.success==true){ 
                            	window.location.href="mains.jsp";
                             } 
                             else{ 
                                alert('邮箱或密码错误,请重新登录！');      
                             } 
                     } 
             }); 
    		
    	}
    	
   		document.onkeydown = function(evt){
			var evt = window.event?window.event:evt;
			if(evt.keyCode==13)
			{
				checkLogin();
			}
		}
    </script>
</div>
<div id="c1y">
<div id="c1ys">
<p style="height:22px;">用户名TEST：<input   id="loginName" type="text"  name="Uemail"  style="border:#7f9db9 1px solid; height:22px; width:150px;"></p>
<p style="height:22px; margin-top:5px;">密&nbsp;&nbsp;&nbsp;&nbsp;码：<input id="loginPass" type="password" name="Upassword"  style="border:#7f9db9 1px solid; height:22px; width:150px;" ></p>
<p>

<table width="204" border="0" cellspacing="0" cellpadding="0" align="center" style="margin-top:7px;">
  <tr>
    <td width="100"><!-- <input name="" type="checkbox" value="" />自动登录 --></td> 
    <td width="180"><input name="" type="button" onclick="checkLogin()" style="width:70px; height:22px; background:url(images/dl.gif) no-repeat; border:0;" /></td>
  </tr>
</table>
 
</p>
<p style="height:25px; text-align:center; margin-top:15px;"><a href="register.jsp"><font style="color:red">免费注册</font></a>&nbsp;<!-- |&nbsp;<a href="#">忘记密码</a>--></p> 
</div>
<div id="c1yx"><img src="images/kfQQ.jpg" border="0" usemap="#Map" />
<map name="Map" id="Map"><area shape="rect" coords="34,16,84,39" href="http://wpa.qq.com/msgrd?v=3&uin=1047301702&site=qq&menu=yes" /><area shape="rect" coords="113,16,161,36" href="http://wpa.qq.com/msgrd?v=3&uin=389657203&site=qq&menu=yes" /><area shape="rect" coords="35,45,81,68" href="http://wpa.qq.com/msgrd?v=3&uin=1901431269&site=qq&menu=yes" /><area shape="rect" coords="114,46,167,70" href="#" /></map></div>
</div>
</div>
<div id="c2">
<div id="c2_1">
<div id="c2_1s"><img src="images/htgg.gif" /></div>
<div id="c2_1x">
<div id="maq" style="overflow:hidden;height:236px;width:202px;">  
<div id="mtext"> 
	<c:forEach var="article" items="${annList}">
		<a href="#">${article.content}</a>
	</c:forEach>
</div>  
<div id=m0></div>  
</div>  

<script>  
var speed3=70;  //调整滚动速度  
var nnn = 236;
m0.innerHTML=mtext.innerHTML;  
//for(i=0;i<nnn;i++)
//{
//	mtext.innerHTML+="<br />"+ mtext.innerHTML
//}
function Marquee()
{  
	if(m0.offsetTop-maq.scrollTop<=0)
	{  
		maq.scrollTop-=mtext.offsetHeight;
	}  
	else{  
		maq.scrollTop++;  
	}  
}  
var MyMar=setInterval(Marquee,speed3);  
maq.onmouseover=function(){clearInterval(MyMar);}   
maq.onmouseout=function(){MyMar=setInterval(Marquee,speed3);} 
</script> 
</div>
</div>
<div id="c2_2">
<div id="c2_2s"></div>
<div id="c2_2x"><a href="http://blog.sina.com.cn/s/blog_9c81bdbb01011dw4.html" target="_blank"><img src="images/lct.gif" /></a></div>
</div>
<div id="c2_3">
<div id="c2_3_1">
<div id="c2_3_1s"></div>
<div id="c2_3_1x">
<jsp:include page="searchWbBox.jsp" flush="true"/>
</div>
</div>
<div id="c2_3_2"><a href="#"><img src="images/wsjj.gif" border="0" alt="网上寄件" /></a></div>
</div>
</div>
<div id="c3">
<div id="c3_1">
<div id="c3_1s"></div>
<div id="c3_1x">
<ul>
<li><img src="images/xm_4.gif" border="0" title="中国邮政小包" /></li>
<li><img src="images/xm_2.gif" border="0" title="香港邮政小包" /></li>
<li><img src="images/xm_3.gif" border="0" title="UPS国际快递" /></li>
<li><img src="images/xm_1.gif" border="0" title="联邦快递" /></li>
</ul>
</div>
</div>
<div id="c3_2">
<div id="c3_2s">
<ul>
<li id="tabadmenu_10" onMouseOver="setTimeout('Show_zllMenu(1,0)',200);" class="nz0"><a href="#">行业新闻</a></li>
<li id="tabadmenu_11" onMouseOver="setTimeout('Show_zllMenu(1,1)',200);"><a href="#">常见问题</a></li>
<li id="tabadmenu_12" onMouseOver="setTimeout('Show_zllMenu(1,2)',200);"><a href="#">新手上路·</a></li>
</ul>
</div>
<div id="c3_2x">

<ul id="tabadcontent_10">
	<c:forEach var="article" items="${newsList}">
		<li><span>[${article.updatedDtAsStr}]</span><a href="#" title="">${article.title}</a></li>
	</c:forEach>
</ul>

<ul id="tabadcontent_11" style="display:none;">
	<c:forEach var="article" items="${problemsList}">
		<li><span>[${article.updatedDtAsStr}]</span><a href="cjwt.jsp" title="">${article.title}</a></li>
	</c:forEach>
</ul>

<ul id="tabadcontent_12" style="display:none;">
	<c:forEach var="article" items="${newUserList}">
		<c:if test="${article.url == null}">
			<li><span>[${article.updatedDtAsStr}]</span><a href="#" title="">${article.title}</a></li>
		</c:if>
		<c:if test="${article.url != null}">
			<li><span>[${article.updatedDtAsStr}]</span><a target="_blank" href="${article.url}" title="">${article.title}</a></li>
		</c:if>
	</c:forEach>
</ul>
</div>
</div>
<div id="c3_3">
<div id="c3_3s"><a href="#"><img src="images/zxdzxx.gif" border="0" alt="最新打折信息" /></a></div>
<div id="c3_3x">
<ul>
	<c:forEach var="article" items="${discountList}">
		<c:if test="${article.url == null}">
			<li><span>[${article.updatedDtAsStr}]</span><a href="#" title="">${article.title}</a></li>
		</c:if>
		<c:if test="${article.url != null}">
			<li><span>[${article.updatedDtAsStr}]</span><a target="_blank" href="${article.url}" title="">${article.title}</a></li>
		</c:if>
	</c:forEach></ul>
</div>
</div>
</div>
<div id="c4">
<div id="c41">
<jsp:include page="friendLink.jsp" flush="true"/>
</div>
<div id="c42"><img src="images/hzhbx.gif" /></div>
</div>
<div id="c5">
<jsp:include page="foot.jsp"/>
</div>
</body>
</html>
